<?
$help['sandbox:configure'] = 'checkout branch into directory and create required configuration';
$opt['sandbox:configure'] = array('branch', 'dir');
$reqOpt['sandbox:configure'] = array('branch', 'dir');
//$opt['configure']['opt']
require_once(__DIR__ . '/sandbox:make-config.cmd.php');

function cmd_sandbox_configure($branch, $dir){
    global $vars;
    if(!$branch || !$dir) error('you have to specify branch and dir parameters for configure command');
	checkout($branch, $dir, 'co');
	call_user_func('cmd_sandbox_make_config', $branch, $dir, $vars);
}